QT       += core gui widgets

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

# Include paths
INCLUDEPATH += . src src/ui src/business src/data src/utils

SOURCES += \
    main.cpp \
    src/ui/systemmain.cpp \
    src/ui/loginui.cpp \
    src/ui/customerui.cpp \
    src/ui/cartui.cpp \
    src/ui/adminmenuwidget.cpp \
    src/ui/adminmenuwidget_slots.cpp \
    src/ui/menuitemedidialog.cpp \
    src/ui/ordermanagementui.cpp \
    src/ui/orderlistwidget.cpp \
    src/ui/orderdetailwidget.cpp \
    src/ui/ordercontrolwidget.cpp \
    src/ui/orderstatisticswidget.cpp \
    src/ui/userinfowidget.cpp \
    src/ui/orderhistorywidget.cpp \
    src/ui/usersettingswidget.cpp \
    src/ui/usermanagementwidget.cpp \
    src/ui/ratingwidget.cpp \
    src/ui/ratingviewwidget.cpp \
    src/data/models.cpp \
    src/data/filehandler.cpp \
    src/data/datamanager.cpp \
    src/utils/constants.cpp \
    src/utils/errorhandler.cpp \
    src/business/usermanager.cpp \
    src/business/menumanager.cpp \
    src/business/ordermanager.cpp \
    src/business/ratingmanager.cpp \
    src/business/reorderservice.cpp

HEADERS += \
    src/ui/systemmain.h \
    src/ui/loginui.h \
    src/ui/customerui.h \
    src/ui/cartui.h \
    src/ui/adminmenuwidget.h \
    src/ui/menuitemedidialog.h \
    src/ui/ordermanagementui.h \
    src/ui/orderlistwidget.h \
    src/ui/orderdetailwidget.h \
    src/ui/ordercontrolwidget.h \
    src/ui/orderstatisticswidget.h \
    src/ui/userinfowidget.h \
    src/ui/orderhistorywidget.h \
    src/ui/usersettingswidget.h \
    src/ui/usermanagementwidget.h \
    src/ui/ratingwidget.h \
    src/ui/ratingviewwidget.h \
    src/data/models.h \
    src/data/filehandler.h \
    src/data/datamanager.h \
    src/utils/constants.h \
    src/utils/errorhandler.h \
    src/business/usermanager.h \
    src/business/menumanager.h \
    src/business/ordermanager.h \
    src/business/ratingmanager.h \
    src/business/reorderservice.h

RESOURCES += \
    resources.qrc

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
